package org.dxw.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import lombok.Data;
import org.dxw.common.constant.DateConstant;
import org.dxw.common.excel.EasyExcelConvert;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author
 * @Date
 * @Description
 */
@Data
public class UserExport {

    @ExcelProperty(value = {"用户信息", "id"})
    private Long userId;

    @ExcelProperty(value = {"用户信息", "名称"})
    private String userName;

    @ExcelProperty(value = {"用户信息", "年龄"})
    private Integer age;

    @ExcelProperty(value = {"用户信息", "评分"}, converter = EasyExcelConvert.BigDecimalScale2Convert.class)
    private BigDecimal score;

    @ExcelProperty(value = {"用户信息", "创建时间"})
    @DateTimeFormat(value = DateConstant.DATE_PATTERN)
    private Date createTime;

    @ExcelProperty(value = {"角色信息", "名称"})
    private String roleName;

    @ExcelProperty(value = {"角色信息", "key"})
    private String roleKey;






}
